﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200009F RID: 159
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AlleyTakeEventRewardScRsp : IMessage<AlleyTakeEventRewardScRsp>, IMessage, IEquatable<AlleyTakeEventRewardScRsp>, IDeepCloneable<AlleyTakeEventRewardScRsp>, IBufferMessage
	{
		// Token: 0x170001EF RID: 495
		// (get) Token: 0x060006EC RID: 1772 RVA: 0x00013D01 File Offset: 0x00011F01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AlleyTakeEventRewardScRsp> Parser
		{
			get
			{
				return AlleyTakeEventRewardScRsp._parser;
			}
		}

		// Token: 0x170001F0 RID: 496
		// (get) Token: 0x060006ED RID: 1773 RVA: 0x00013D08 File Offset: 0x00011F08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AlleyTakeEventRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170001F1 RID: 497
		// (get) Token: 0x060006EE RID: 1774 RVA: 0x00013D1A File Offset: 0x00011F1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AlleyTakeEventRewardScRsp.Descriptor;
			}
		}

		// Token: 0x060006EF RID: 1775 RVA: 0x00013D21 File Offset: 0x00011F21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AlleyTakeEventRewardScRsp()
		{
		}

		// Token: 0x060006F0 RID: 1776 RVA: 0x00013D2C File Offset: 0x00011F2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AlleyTakeEventRewardScRsp(AlleyTakeEventRewardScRsp other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060006F1 RID: 1777 RVA: 0x00013D78 File Offset: 0x00011F78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AlleyTakeEventRewardScRsp Clone()
		{
			return new AlleyTakeEventRewardScRsp(this);
		}

		// Token: 0x170001F2 RID: 498
		// (get) Token: 0x060006F2 RID: 1778 RVA: 0x00013D80 File Offset: 0x00011F80
		// (set) Token: 0x060006F3 RID: 1779 RVA: 0x00013D88 File Offset: 0x00011F88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x170001F3 RID: 499
		// (get) Token: 0x060006F4 RID: 1780 RVA: 0x00013D91 File Offset: 0x00011F91
		// (set) Token: 0x060006F5 RID: 1781 RVA: 0x00013D99 File Offset: 0x00011F99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060006F6 RID: 1782 RVA: 0x00013DA2 File Offset: 0x00011FA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AlleyTakeEventRewardScRsp);
		}

		// Token: 0x060006F7 RID: 1783 RVA: 0x00013DB0 File Offset: 0x00011FB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AlleyTakeEventRewardScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060006F8 RID: 1784 RVA: 0x00013E00 File Offset: 0x00012000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060006F9 RID: 1785 RVA: 0x00013E55 File Offset: 0x00012055
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060006FA RID: 1786 RVA: 0x00013E5D File Offset: 0x0001205D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060006FB RID: 1787 RVA: 0x00013E68 File Offset: 0x00012068
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060006FC RID: 1788 RVA: 0x00013EC4 File Offset: 0x000120C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060006FD RID: 1789 RVA: 0x00013F1C File Offset: 0x0001211C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AlleyTakeEventRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060006FE RID: 1790 RVA: 0x00013F84 File Offset: 0x00012184
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060006FF RID: 1791 RVA: 0x00013F90 File Offset: 0x00012190
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.reward_ == null)
					{
						this.Reward = new ItemList();
					}
					input.ReadMessage(this.Reward);
				}
			}
		}

		// Token: 0x0400027E RID: 638
		private static readonly MessageParser<AlleyTakeEventRewardScRsp> _parser = new MessageParser<AlleyTakeEventRewardScRsp>(() => new AlleyTakeEventRewardScRsp());

		// Token: 0x0400027F RID: 639
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000280 RID: 640
		public const int RewardFieldNumber = 6;

		// Token: 0x04000281 RID: 641
		private ItemList reward_;

		// Token: 0x04000282 RID: 642
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04000283 RID: 643
		private uint retcode_;
	}
}
